<?php
/**
 * Author:xsc
 * Time:2023/10/9 15:19
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class GoodsUgcBindParams extends BaseParam
{

    public $mobile;

    public $goods_id;

    public $third_no;

    public $coupon;

    public $envelope;

    public function rules()
    {
        return [
            'mobile'   => 'required|string',
            'goods_id' => 'required|int',
            'third_no' => 'required|string',
            'coupon'   => 'string',
            'envelope' => 'string',
        ];
    }

    public function message()
    {
        return [
            "mobile.required"   => "手机号不能为空",
            "goods_id.required" => "商品id不能为空",
            "third_no.required" => "订单号不能为空",
        ];
    }

    public function getMobile()
    {
        return $this->mobile;
    }

    public function getGoodsId()
    {
        return $this->goods_id;
    }

    public function getThirdNo()
    {
        return $this->third_no;
    }

    public function getCoupon()
    {
        return $this->coupon;
    }

    public function getEnvelope()
    {
        return $this->envelope;
    }

}
